<?
	function money($x)
	{
		return '&#8369; '.number_format(floatval($x),2,'.',',');
	}
?>
<style>
	.left{text-align:left;}
	.right{text-align:right;}
</style>
<div class="span10">
	<fieldset>
		<legend>Phil Health Table</legend>
		<table class="table table-bordered table-striped">
			<thead>
				<tr>
					<td>Monthly Salary Bracket</td>
					<td colspan="2">Monthly Salary Range</td>
					<td>Salary Base</td>
					<td>Employee Share</td>
					<td>Employeer Share</td>
					<td>Total</td>
				</tr>

			</thead>
			<tbody>
			<?if(!empty($phh)):?>
				<? foreach($phh as $phh): ?>
				<tr>
					<td style="text-align:right;"><?=$phh->monthly_salary_bracket;?></td>
					<td style="text-align:right;"><?=$phh->monthly_salary_range_from;?></td>
					<td style="text-align:right;"><?=$phh->monthly_salary_range_to;?></td>
					<td style="text-align:right;"><?=$phh->salary_base;?></td>
					<td style="text-align:right;"><?=$phh->employee_share;?></td>
					<td style="text-align:right;"><?=$phh->employer_share;?></td>
					<td style="text-align:right;"><?=$phh->total;?></td>
				</tr>
				<?
				endforeach;
			endif;?>
			</tbody>
		</table>
	</fieldset>
</div>